import request from '@/utils/request'

/**
 *  获取全部用户信息
 */
export function getUserInfo() {
  return request({
    url: '/user/infoList',
    method: 'get'
  })
}

/**
 * 停用用户
 */
export function disableUser(id) {
  return request({
    url: `/user/disable?id=${id}`,
    method: 'delete'
  })
}

/**
 * 修改用户
 */
export function updateUser(data) {
  return request({
    url: '/user/update',
    method: 'put',
    data
  })
}
